#!/usr/bin/env python3

#_*_coding: utf-8 _*_
#@Time   :2020/5/21 10:39
#@Author :zhangyan
#@Software  :PyCharm
'webdriver测试'
import selenium.webdriver
from selenium.webdriver.support.select import Select

import interface_test.model
import unittest
import time

unittest.TestSuite().addTest()
unittest.defaultTestLoader.discover()
unittest.TextTestRunner().run( )
def open_chrome():
    animal = interface_test.model.Animal();
    print(animal.name)
    chromeDriver = selenium.webdriver.Chrome("D:\gitrepository\pthon_automation_learning\kissfuture\chromedriver.exe")
    chromeDriver.maximize_window()
    # chromeDriver.get("https://www.baidu.com/")
    # time.sleep(5)
    # quit()
    chromeDriver.get_screenshot_as_file("")
    chromeDriver.switch_to.alert.accept()
    sel = selenium.webdriver.support.select.Select(chromeDriver.find_element_by_css_selector(""))
if __name__ == '__main__':
    open_chrome()
